<template>
  <div id="modify-personal-info-box">
    <el-radio-group v-model="labelPosition" size="small">
      <el-radio-button label="left">左对齐</el-radio-button>
      <el-radio-button label="right">右对齐</el-radio-button>
      <el-radio-button label="top">顶部对齐</el-radio-button>
    </el-radio-group>
    <div style="margin: 20px;"></div>
    <el-form :label-position="labelPosition" label-width="130px" :model="formLabelAlign">
      <el-form-item label="密码">
        <el-input v-model="formLabelAlign.password1"></el-input>
      </el-form-item>
      <el-form-item label="重新输入密码">
        <el-input v-model="formLabelAlign.password2"></el-input>
      </el-form-item>
      <el-form-item label="昵称">
        <el-input v-model="formLabelAlign.nickname"></el-input>
      </el-form-item>
      <el-form-item label="性别">
        <el-input v-model="formLabelAlign.sex"></el-input>
      </el-form-item>
    </el-form>
    <div class="btn-box">
      <el-button>确定</el-button>
      <el-button>取消</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "ModifyPersonalInfo",
  data() {
    return {
      labelPosition: 'left',
      formLabelAlign: {
        password1: '123',
        password2: '123',
        nickname: '笑笑',
        sex: '女'
      }
    };
  }
}
</script>

<style scoped>
#modify-personal-info-box {
  position: absolute;
  width: 40%;
  background-color: #f6b6a3;
  left: 30%;
  margin-top: 30px;
}

.btn-box{
  background-color: #2e6da4;
  display: flex;
  justify-content: space-around;
}
</style>